package test;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Demo {
    public static void main(String[] args) {

        AnnotationConfigApplicationContext context =
                new AnnotationConfigApplicationContext("test");
        Student CS = context.getBean(Student.class);
        System.out.println("早餐"+CS);

        Student1 FS= context.getBean(Student1.class);
        System.out.println("午餐"+FS);

    }
}
